#ifndef __BSP_LED_H
#define __BSP_LED_H

#include "stm32f10x.h"

#define LED_BLUE_PIN    GPIO_Pin_13 /*GPIO????*/
#define LED_BLUE_PORT   GPIOC /*GPIO??*/
#define LED_BLUE_CLK    RCC_APB2Periph_GPIOC /*GPIO??*/
#define LED_GREEN_PIN		GPIO_Pin_14						/*GPIO????*/
#define LED_GREEN_PORT		GPIOC									/*GPIO??*/
#define LED_GREEN_CLK		RCC_APB2Periph_GPIOC	/*GPIO??*/

#define LED_RED_PIN		GPIO_Pin_15						/*GPIO????*/
#define LED_RED_PORT		GPIOC									/*GPIO??*/
#define LED_RED_CLK		RCC_APB2Periph_GPIOC	/*GPIO??*/

#define LED_WHITE_PIN		GPIO_Pin_6						/*GPIO????*/
#define LED_WHITE_PORT		GPIOB									/*GPIO??*/
#define LED_WHITE_CLK		RCC_APB2Periph_GPIOB	/*GPIO??*/

//??LED??????



#define LED_BLUE_ON()   GPIO_ResetBits(LED_BLUE_PORT, LED_BLUE_PIN)
#define LED_BLUE_OFF()   GPIO_SetBits(LED_BLUE_PORT, LED_BLUE_PIN)
#define LED_GREEN_OFF() GPIO_ResetBits(LED_GREEN_PORT,LED_GREEN_PIN)
#define LED_GREEN_ON() GPIO_SetBits(LED_GREEN_PORT,LED_GREEN_PIN)

#define LED_RED_OFF() GPIO_ResetBits(LED_RED_PORT,LED_RED_PIN)
#define LED_RED_ON() GPIO_SetBits(LED_RED_PORT,LED_RED_PIN)

#define LED_WHITE_ON() GPIO_ResetBits(LED_WHITE_PORT,LED_WHITE_PIN)
#define LED_WHITE_OFF() GPIO_SetBits(LED_WHITE_PORT,LED_WHITE_PIN)

void    LED_GPIO_Config(void);

#endif